package com.szrt.java.day20161230.demo02;


import org.junit.Test;

public class StudentTest02 {

	@Test
	public void test() {
		
		Student02 zhugeliang = new Student02();
		zhugeliang.setAge(50);
		zhugeliang.setSex('男');
		
		zhugeliang.setName(null);
		//System.out.println(zhugeliang.toString()); //toString()可以省略
		System.out.println(zhugeliang);  //直接这样写相当于调用toString()
		
	}

}
